// 首页
import axios from '@/api/request/request'

// 列表
const knowledgeList = (option: any) => {
  return axios.get('/knowledge/list', { ...option })
}

// 所有
const knowledgeAll = (option: any) => {
  return axios.get('/knowledge/all', { ...option })
}

// 保存
const knowledgeSave = (option: any) => {
  return axios.post('/knowledge/save', { ...option })
}

// 删除
const knowledgeDelete = (option: any) => {
  return axios.get('/knowledge/delete', { ...option })
}

export { knowledgeList, knowledgeAll, knowledgeSave, knowledgeDelete }
